<!--{template common/header}-->

<!--{eval $list = array();}-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->

<!--{eval}-->
$cache_menus=$_G['cache']['portalcategory'];
 if(array_key_exists("ups",$cat)){
	$cptitle=array_values($cat['ups'])[0]['catname'];
	$cptitleb=array_values($cat['ups'])[0]['fullfoldername'];
    if($cat['level']>1){
        $children =$cat['ups'][$cat['topid']]['children'];
        $arrmenu=array();
        foreach($children as $v){
            $arrmenu[]=$cache_menus[$v];
        }
    }else{
        $arrmenu=$cat['others'];
    }
 }else{
	 $cptitle=$cat['catname'];
	  $cptitleb=$cat['fullfoldername'];	
	  $arrmenu=$cat['subs'];
      
 }

foreach($arrmenu as $k=>$v){
if($v['children']){
$sanji=array();
foreach($v['children'] as $vv){
    $sanji[]=$cache_menus[$vv];
    
}
$arrmenu[$k]['sanji']=$sanji;
}
}
<!--{/eval}-->
<div class="wpui_nbanner banner_goods">
    <div class="wpui_wrapper wpui_nbannerprr">
        <h1><i></i>
            <a href="./" title="{lang homepage}">$_G[setting][bbname]</a><em>/</em><a href="$_G[setting][navs][1][filename]">{lang nav_index}</a><em>/</em><!--{loop $cat['ups'] $value}--><a href="{echo getportalcategoryurl($value[catid])}">$value['catname']</a><em>/</em><!--{/loop}--><span>$cat['catname']</span>
        </h1>
        <h2>$cat['catname']</h2>
        <!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
        <span class="wpui_fabiaobtn"><a href="portal.php?mod=portalcp&ac=article&catid=$cat[catid]">+ {$lang['wpui_fabu']}</a></span>
        <!--{/if}-->
    </div>
</div>
<div class="wpui_content bgf9">
    <div class="wpui_wrapper">
        <ul class="wpui_nmenu">
            <li><a <!--{if $cat['topid']==$catid}-->class="on"<!--{/if}--> href="{$cat['ups'][$cat['topid']]['caturl']}">{$lang['wpui_quanbu']}</a></li>
            <!--{loop $arrmenu $key $val}-->
            <li>
                <a <!--{if $val['catid']==$catid}-->class="on"<!--{/if}--> href="{$val['caturl']}">{$val['catname']}</a>
                <!--{if $val['sanji']}-->
                <div class="wpui_nmenubox">
                    <!--{loop $val['sanji'] $val2}-->
                    <a <!--{if $val2['catid']==$catid}-->class="on"<!--{/if}--> href="{$val2['caturl']}">{$val2['catname']}</a>
                    <!--{/loop}-->
                </div>
                <!--{/if}-->
            </li>
            <!--{/loop}-->
        </ul>
    </div>
</div>
<div class="wpui_content ovh mgb30">
    <div class="wpui_wrapper">
        <div class="wpui_goods">
            <ul>
                <!--{loop $list['list'] $key $val}-->
                <!--{eval $url = fetch_article_url($val);}-->
                <li class="wow fadeInUp">
                <a href="{$url}">
                    <!--{if $val[pic]}-->
                    <h1><img src="{$val[pic]}"></h1>
                    <!--{else}-->
                    <h1><img src="template/wpui_mb2/style/images/wpui_nocover.jpg"></h1>
                    <!--{/if}-->
                    <h2>{$val['title']}</h2>
                    <p>{$val['catname']}</p>
                    <i></i>
                </a>
                </li>
                <!--{/loop}-->
            </ul>
        </div>
        <div class="clear"></div>
        <div class="page">{$list['multi']}</div>
    </div>
</div>
<!--{template common/footer}-->